<style lang="less" scoped>
@primary-color:#FE9333;//橘黄色默认颜色
@write-color:#fff;//白色默认颜色
.newvideo{
    margin-top: 20px;
    .title{
        font-size: 14px;
        color: #686E71;
        margin-bottom: 10px;
    }
    .newvideourl{
        width: 112px;
        height: 70px;
        img{
            width: 100%;
            height: 100%;
        }
    }
}
</style>
<template>
	<div v-show="videoflag">
        <div v-for="(item,index) in videoflag" class="newvideo">
            <div class="title"><span>视频{{index+1}}</span> <span @click="del(index)">删除</span></div>
            <div class="newvideourl">
                <img :src="item.content" />
            </div>
        </div>        
    </div>
</template>
<script>
    export default {
		data() {
				return {

				}
			},
        watch:{
            "videoflag":"emitvideo"
        },
        props:["videoflag"],
		methods:{
            del(index){
                this.$emit("delvideo",index)
            },
            emitvideo(){
                this.$emit("emitvideo",this.videoflag)
            }
		}
    }
</script>